<template>
  <view class="buttonContact-box" v-if="show">
    <!--    <view class="modal">-->
    <!--      <view class="title">提示</view>-->
    <!--      <view class="message">-->
    <!--        请发送“1”<br/>-->
    <!--        获取app下载链接-->
    <!--      </view>-->
    <!--      <button open-type="contact" @click="show=false">我知道了</button>-->
    <!--    </view>-->
    <view class="wxApp">
      <view class="title">提示</view>
      <view class="image">
        <image src="https://wechat-pictures-1301970825.file.myqcloud.com/wxapp/member/app.gif"></image>
      </view>
      <button send-message-title="点击下方链接下载app" send-message-path="taskCenter/index/index"
              send-message-img="https://wechat-pictures-1301970825.file.myqcloud.com/wxapp/member/appD.jpg"
              open-type="contact" :show-message-card="true" @click="show=false">我知道了
      </button>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {
      show: false
    };
  },
  methods: {
    submitSendMessage() {
      uni.showModal()
    }
  }
}
</script>

<style lang="scss">
.buttonContact-box {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 13;

  .modal {
    width: 610upx;
    height: 382upx;
    background-color: #fff;
    border-radius: 8upx;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;

    .title {
      font-size: 38upx;
      color: #333333;
      width: 100%;
      text-align: center;
      line-height: 121upx;
      height: 121upx;
    }

    .message {
      width: 100%;
      text-align: center;
      font-size: 42upx;
      color: #333333;
    }

    button {
      margin-top: auto;
      line-height: 98upx;
      border: none !important;
      border-top: 1upx solid #E6E8F1;
      font-size: 40upx;
      color: #5CAE77;
    }
  }

  .wxApp {
    width: 610upx;
    height: 1012upx;
    background-color: #fff;
    border-radius: 8upx;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;

    .title {
      font-size: 38upx;
      color: #333333;
      width: 100%;
      text-align: center;
      line-height: 121upx;
      height: 121upx;
    }

    .image {
      width: 510upx;
      height: 690upx;

      image {
        width: 100%;
        height: 100%;
      }
    }

    button {
      width: 560upx;
      margin-top: 40upx;
      line-height: 98upx;
      border: none !important;
      border-top: 1upx solid #E6E8F1;
      font-size: 40upx;
      color: #fff;
      background-color: #18AA59;
    }
  }
}
</style>
